Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()

src = Split("""
cpuusage.c
""")

file_src = Split("""
readspeed.c
writespeed.c
vi.c
""")

ethdev_src = Split("""
netio.c
ping.c
tcpecho.c
udpecho.c
ntp.c
tftpserver.c
webclient.c
ftpd.c
telnet.c
""")

if GetDepend(['RT_USING_DFS']):
    src += file_src

if GetDepend(['RT_USING_LWIP']):
    src += ethdev_src

CPPPATH = [cwd]

group = DefineGroup('Tools', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
